package com.gxa.pojo.activity;

import com.fasterxml.jackson.annotation.JsonFormat;


import java.util.Date;
import java.util.List;


public class Activity {
    private int aid;
    private String aname;
    private int type;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date starttime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endtime;
    private String note;
    private boolean state;
    private ActivityType activityType;

    @Override
    public String toString() {
        return "Activity{" +
                "aid=" + aid +
                ", aname='" + aname + '\'' +
                ", type='" + type + '\'' +
                ", starttime=" + starttime +
                ", endtime=" + endtime +
                ", note='" + note + '\'' +
                ", state=" + state +
                ", activityType=" + activityType +
                '}';
    }

    public Activity( ) {
    }

    public Activity(int aid, String aname, int type, Date starttime, Date endtime, String note, boolean state, ActivityType activityType) {
        this.aid = aid;
        this.aname = aname;
        this.type = type;
        this.starttime = starttime;
        this.endtime = endtime;
        this.note = note;
        this.state = state;
        this.activityType = activityType;
    }

    public int getAid() {
        return aid;
    }

    public void setAid(int aid) {
        this.aid = aid;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public ActivityType getActivityType() {
        return activityType;
    }

    public void setActivityType(ActivityType activityType) {
        this.activityType = activityType;
    }
}
